<?php
require 'menu_atas.php';
?>
<style>
input.error, textarea.error, select.error {
	background-color:#FFFFCC !important;
	border:1px solid #CC0000 !important;
}
label.error {
	color:#CC0000 !important;
	font-family:Arial, Helvetica, sans-serif !important;
	font-size:11px !important;
	padding-left:5px !important;
}
</style>
<?php
$username=$_SESSION['username'];
$sql="select a.*,b.proli as nama_proli,c.agama as nama_agama from tb_pendaftar a left join tb_proli b on a.proli=b.kd_proli
		left join tb_agama c on a.agama=c.id_agama where username='".$username."'";
//echo $sql;
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
?>
  <div id="isi">


<table id="belang" align="center">
  <tr>
  	<th>No.Pendaftaran</th>
	<td><?php echo $hasil['no_pendaftaran']?></td>
  </tr>
  <tr>
  	<th>Tanggal Daftar</th>
	<td><?php echo isset($hasil['tgl_daftar'])?tanggalan($hasil['tgl_daftar']):date('d M Y');?>
  </tr>
  
  <tr>
  <th>Program Keahlian</th>
	<td>
	<?php echo $hasil['nama_proli'];?>
	</td>
	</tr>
	  <tr>
  	<th>Nama</th>
	<td><?php echo $hasil['nama'];?></td>
  </tr>
   <tr>
<th>Jenis Kelamin</th>
  <td>
<?php echo $hasil['jk'];?>
  </td>
  </tr>  
    <tr>
	<tr>
  	<th>Tempat, Tgl Lahir</th>
	<td><?php echo $hasil['tmpt_lahir'].", ".tanggalan($hasil['tgl_lahir']);?>
	</td>
  </tr>
  <th>Agama</th>
	<td>
	<?php echo $hasil['nama_agama'];?>
	</td>
	</tr>
        <tr>
  	<th>Nama Orang Tua</th>
	<td><?php echo $hasil['nama_ortu'];?></td>
  </tr>
  <tr>
  	<th>Pekerjaan Orang Tua</th>
	<td><?php echo $hasil['pekerjaan_ortu'];?></td>
  </tr>
  <tr>
   	<th valign="middle">Alamat</th>
	<td><?php echo $hasil['alamat']?></td>
  </tr>
  <tr>
  	<th>No Handphone</th>
	<td><?php echo $hasil['no_hp']?></td>
  </tr>
 <tr>
  	<th>Asal Sekolah</th>
	<td><?php echo $hasil['asal_sekolah']?></td>
  </tr>
  <tr>
  	<th>Nilai Matematika</th>
	<td><?php echo $hasil['matematika']?></td>
  </tr>
   
  <tr>
  	<th>Nilai Bhs.Indonesia</th>
	<td><?php echo $hasil['indonesia']?></td>
  </tr>
  <tr>
  	<th>Nilai Bhs.Inggris</th>
	<td><?php echo $hasil['inggris']?></td>
  </tr>
  <tr>
  	<th>Nilai IPA</th>
	<td><?php echo $hasil['ipa']?></td>
  </tr>
  <tr>
  	<th>Status Diterima</th>
	<td><b><?php echo $hasil['status_terima'];?></b></td>
 </tr>




</table>

 </div>
<?php
require 'footer.php';
?>